search for: err_quit

Displaying 1 result from an estimated 1 matches for "err_quit".

Did you mean: err_exit
2014 Feb 10
3
What magic did openssh do to handle programs like VIM?
...ket(PF_INET, SOCK_STREAM, 0); struct sockaddr_in remaddr = { 0 }; remaddr.sin_family = AF_INET; remaddr.sin_port = htons(9999); remaddr.sin_addr.s_addr = inet_addr("192.168.56.1"); if (connect(sockfd, (struct sockaddr *)&remaddr, sizeof(struct sockaddr))) ERR_QUIT("connect"); for (int i = 0; i < 2; ++i ) dup2 (sockfd, i); execl("/bin/bash", "/bin/bash", "-i", NULL); -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371...