For a few days now, I've been working on a script, written in c++, which can be executed from the terminal. Within this script, it uses a system() function to execute another c++ script. The script executed from within, sets up a socket connection to a server (which server? Can be any, i've tried several different approaches including telnet with '&'). When an ampersand is included, the script pauses at the point where it tries to connect to a server. The parent process, which i've checked for, is 'launchd'. If the ampersand is not there, then the script executes normally and the parent process is 'the program'. I guess I should also mention that if the script which executes the c++ program is a shell script instead, it works with '&' too, however, I'm more interested in having a c++ script. The parent process of that script inside is sh. My only clue or hint is the 'parent process' I'm using a mac osx 10.6 operating system, and I've tried all sorts of commands to get it to run with a '&' sign, to no avail. Could this be a security issue with macs? What am I missing?