Displaying 1 result from an estimated 1 matches for "get_one_sig_line".
2003 Dec 30
0
linux named pipe over samba
...a .sig from that pipe when he
connects from a Win 2K box. The writer end of the .sig file is a
real basic random sig generator in perl (this is kinda simplified):
#!/usr/bin/perl -w
$SIG{PIPE} = 'IGNORE';
while(1){
open(PIPE, '>', '/path/to/named_pipe');
print PIPE get_one_sig_line();
close PIPE;
sleep(1);
}
sub get_one_sig_line{
return "this is a bad .sig\n";
}
and /path/to/named/pipe is, in fact, a named pipe. If the while loop
is removed, the program exits when the file's selected under windows.
That leads me to believe that windows is trying to read...