Spawn a screen session from launch daemon
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:resent-from:date:content-transfer-encoding :resent-date:resent-to:message-id:to:x-mailer; bh=OSrotAtammn1Vv9nWy0nhi67I3Cb/3mXAxqru6wu+tw=; b=gZuNtAPnbWeUvz8fiPg6xvYHMAo5k1n4xh6rIRlF5Wsx/wjOcAvd8KY9m6bk2jlHBk GqVdTMUY5TYfg5vlNF/zkwVwwVa8QQDPAMvpb1Ilk1uVorXns/u71Sq84HXM475VQwvN T7RDwobvqKww/racmRui6qO6x4qAvIq5OHGD0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:resent-from:date :content-transfer-encoding:resent-date:resent-to:message-id:to :x-mailer; b=fPYSuYVG+dV3XwBuSoeBRv/nhCnhqVsw3IMrvjbI93Pe77NdTd5PgDWSebDUcsrJsE hhobdgekMNq7SeQ73Cj9UrIfTeS/iVMSftTtFiLAaW0JOzSNg0qJ/l31LBz0BCEaN/h/ JtzLmCWo0wSnkCutCkjeUcmslrKmStKyp5qPQ= Resent-date: Sun, 21 Feb 2010 21:27:20 -0500 Resent-from: Ryan Govostes <rgovostes@gmail.com> Resent-message-id: <20100222022728.C8EC3C01B140@relay1.apple.com> Resent-to: darwin-dev@lists.apple.com 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-launc... _______________________________________________ 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)
-
Ryan Govostes