Added demo program directly
quoted from link:
$ make $ ./forktest
if you hit 'm', it will do the fork in the main thread, and work successfully. if you hit the spacebar, it will create a thread and do the fork in there. and crash.
Added demo program directly
quoted from link:
$ make
$ ./forktest
if you hit 'm', it will do the fork in the main thread, and work successfully.
if you hit the spacebar, it will create a thread and do the fork in there. and crash.