Re: Spawn a screen session from launch daemon
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello, I would like to bump this question. Until recently I was using Tiger on an old Powerbook, and I used to start a screen session from my /etc/rc.local: /etc/rc.local: # ... sudo -u samer bash -l /Users/samer/.bootrc # ... ~/.bootrc: HOSTNAME=<hostname> SHELL=/bin/bash TERM=xterm-color DISPLAY=:0 \ screen -U -d -m -h 6000 Now I've just got a MacBook running Snow Leopard and this doesn't work any more, and evidently starting screen using a launch daemon won't work either. Best regards, Samer
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
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Samer Abdallah