Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • Armagetron Advanced
  • Armagetron Advanced
  • Issues
  • #13

Socket and unclean exit trouble due to fork(), execve() and exit() interaction

The fork blocks the main network sockets of the primary process and probably does bad things to files and output once the script finishes.

Steps to reproduce: In a server build directory

mkdir -p scripts
echo "" > scripts/noscript
<start server>
SPAWN_SCRIPT noscript

The other side of the bug is that running servers block sockets.

mkdir -p scripts
echo "sleep 9000" > scripts/longtime
<start server>
SPAWN_SCRIPT longtime
<connect with client, leave>

the server will not be able to reclaim its original port after its nap.

Edited May 27, 2020 by Manuel Moos
Assignee
Assign to
Time tracking