I've been playing around with this code for a while now and without my c reference book its a bit hard to figure out. The situation is that copyover freezes, never reaches the copyover_recovery() which i'm guessing works, but never been able to see it in action. The do_copyover() function tries to pass more than 1 argument through execl() which causes the execution to stop running.
Changed this:
execl ( EXE_FILE, arg0, arg1, arg2, arg3, ( char * ) NULL );
To:
execl ( EXE_FILE, "copyover", NULL );
The change doesn't stop the program from running but it does run without copyover being recovered (which freezes the mud, players who connect remain on 'connected' but never see the mud intro screen or anything).
Did some checking and it seems execl() can only pass argv[0] to the main() handler, the mud itself. From what i've seen it has to pass "copyover" to argv[2] and various other values. Does anyone know how i can get copyover to work?
Using Heavily modified Rom2.4/Rot1.4 but unchanged in respect to copyover.. It seems to be very similar to erwins v7 copyover snippet (however i'm guessing this came with rot1.4 or something).
Changed this:
execl ( EXE_FILE, arg0, arg1, arg2, arg3, ( char * ) NULL );
To:
execl ( EXE_FILE, "copyover", NULL );
The change doesn't stop the program from running but it does run without copyover being recovered (which freezes the mud, players who connect remain on 'connected' but never see the mud intro screen or anything).
Did some checking and it seems execl() can only pass argv[0] to the main() handler, the mud itself. From what i've seen it has to pass "copyover" to argv[2] and various other values. Does anyone know how i can get copyover to work?
Using Heavily modified Rom2.4/Rot1.4 but unchanged in respect to copyover.. It seems to be very similar to erwins v7 copyover snippet (however i'm guessing this came with rot1.4 or something).