Re: [Sshpass-devel] sshpass doesn't work on FreeBSD
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2012-05-06 19:23:48
|
On 05/06/2012 07:00 PM, Arsen.Shnurkov wrote: > In several places: > > First is definition of SIGWINCH > > #ifndef SIGWINCH > #include <sys/signal.h> > #endif > > Second is open function: > > // in FreeBSD, opening a terminal does not cause it > // to become a process's controlling terminal. > // The flag O_NOCTTY is included only for compatibility;. > I need context for this second change. Best would be if you could send it as a patch (svn diff). Also, is there anywhere I can read on how FreeBSD actually manages the controlling tty? Thanks, Shachar > |char strControllingTerminalName[L_ctermid]; > ctermid(strControllingTerminalName); > if (0 != strcmp(strControllingTerminalName, name)) > { > /* > * Slave becomes stdin/stdout/stderr of child. > */ > if (dup2(fds, STDIN_FILENO) != STDIN_FILENO) > { > perror("dup2 error to stdin"); > } > if (dup2(fds, STDOUT_FILENO) != STDOUT_FILENO) > { > perror("dup2 error to stdout"); > } > if (dup2(fds, STDERR_FILENO) != STDERR_FILENO) > { > perror("dup2 error to stderr"); > } > if (fds != STDIN_FILENO && > fds != STDOUT_FILENO && > fds != STDERR_FILENO) > { > close(fds); > } > }| > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Sshpass-devel mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/sshpass-devel -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com |