Spawn a screen session from launch daemon
Spawn a screen session from launch daemon
- Subject: Spawn a screen session from launch daemon
- From: Ryan Govostes <email@hidden>
- Date: Sun, 21 Feb 2010 21:24:00 -0500
- Resent-date: Sun, 21 Feb 2010 21:27:20 -0500
- Resent-from: Ryan Govostes <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Hello,
I have written a script to be run by launchd when the WindowServer process runs. It starts a detached screen session in which gdb is attached to the WindowServer.
(This isn't for anything production, obviously.)
Unfortunately, launchd throws an error when I try to use screen:
Bug: launchd_core_logic.c:8250 (23932):0
Switching sessions is not allowed in the system Mach bootstrap.
_vprocmgr_switch_to_session(): kr = 0x44c
What is the reasoning behind this? Is there a workaround?
Regards,
Ryan Govostes
Also asked on http://stackoverflow.com/questions/2304847/spawn-a-screen-session-from-launch-daemon _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden