Hi!

I tried to use the file_notice_changes() RPC. First, I created a port:

  err = mach_port_allocate (mach_task_self (),
                            MACH_PORT_RIGHT_RECEIVE,
                            &notify_port);

Then I opened a file on an ext2 file system:

  file = file_name_lookup ("foo", 0, 0);

But when I tried to request notification messages with

  err = file_notice_changes (file, notify_port, MACH_PORT_TYPE_SEND);

this failed with "(ipc/mig) server type check failure". What am I doing
wrong?

Thanks,
GNU/Wolfgang

-- 
Wolfgang J�hrling  <[EMAIL PROTECTED]>  \\  http://stdio.cjb.net/
Debian GNU/Hurd user && Debian GNU/Linux user \\  http://www.gnu.org/
The Hurd Hacking Guide: http://www.gnu.org/software/hurd/hacking-guide/
["We're way ahead of you here. The Hurd has always been on the    ]
[ cutting edge of not being good for anything." -- Roland McGrath ]

_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to