Skip to content
Snippets Groups Projects
Commit 80e7ad5b authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

removed a bug which occurs when running with an old buggy pike

Rev: NT/tools/sprshd:1.10
parent 95c2363f
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,12 @@ inherit Stdio.Port; ...@@ -5,9 +5,12 @@ inherit Stdio.Port;
void monitor(object(Stdio.File) io, object proc) void monitor(object(Stdio.File) io, object proc)
{ {
proc->wait(); proc->wait();
io->close("rw"); if(io)
io->close(); {
destruct(io); io->close("rw");
io->close();
destruct(io);
}
} }
void handle_incoming_connection(object(Stdio.File) io) void handle_incoming_connection(object(Stdio.File) io)
...@@ -94,7 +97,7 @@ void handle_incoming_connection(object(Stdio.File) io) ...@@ -94,7 +97,7 @@ void handle_incoming_connection(object(Stdio.File) io)
"cwd":dir, "cwd":dir,
])); ]));
}; };
destruct(p2); destruct(p2);
if(!err) if(!err)
{ {
#if !constant(Stdio.PROP_IPC) #if !constant(Stdio.PROP_IPC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment