Hey folks, i am trying to set a process as the session leader of its own. I wrote a simple program that handles that. It is working when i call it from my shell command line:
$ sux -s -e -E \ PATH==/home/grios/.bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/asd/bin:/asd/sbin:/asd/thr=,ASDROOT==/asd= /asd/sbin/algr algr argm ............ But when i write a simple shell script like in : #!/bin/sh sux -s -e -E \ PATH==/home/grios/.bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/asd/bin:/asd/sbin:/asd/thr=,ASDROOT==/asd= /asd/sbin/algr algr argm ............ The process is not put on its own session as a leader the (setsid) returns no errors. Does anybody have any ideia what the behavior problem i am not seeing ? Thanks in advance.