summaryrefslogtreecommitdiff
path: root/libdiskfs/init-startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/init-startup.c')
-rw-r--r--libdiskfs/init-startup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c
index b9857c76..9214d4dc 100644
--- a/libdiskfs/init-startup.c
+++ b/libdiskfs/init-startup.c
@@ -109,6 +109,7 @@ _diskfs_init_completed ()
error_t err;
struct port_info *pi;
mach_port_t notify;
+ char *name;
/* Contact the startup server and register our shutdown request.
If we get an error, print an informational message. */
@@ -137,7 +138,10 @@ _diskfs_init_completed ()
goto errout;
}
- err = startup_request_notification (init, notify /* , name */);
+ asprintf (&name, "%s %s", program_invocation_short_name,
+ diskfs_device_arg);
+ err = startup_request_notification (init, notify, name);
+ free (name);
if (err)
goto errout;