DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th June 2013
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default need help with my own rlogind.c

Sorry ignore this thread i've removed it because it was so horribly embarrassing. It was just some ramble that didn't make much sense as a relevant topic for a question here, i feel. Plus it looked like i'd made rlogind.c even worse than it already was because, for some reason that eludes me, i did the i/o without select(2) and didn't make use of non-blocking i/o.
So it was horribly bad and i'd rather forget about it, even though i've possibly made this thread even more meaningless by editing it.

Last edited by unixjingleman; 26th September 2016 at 10:38 AM. Reason: Have changed the code
Reply With Quote
  #2   (View Single Post)  
Old 7th June 2013
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default

And yes the firewall is off on the server, when i test the program. Also i don't use rcmd, on the client, to initiate the normal rlogin login. I just send the username to the server. The server then passes this username to /bin/login which is exec()'d as written above.

Last edited by unixjingleman; 10th June 2013 at 08:20 PM.
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

unixjingleman also posted this question to linuxquestions.org as:

http://www.linuxquestions.org/questi...-c-4175465118/
Reply With Quote
  #4   (View Single Post)  
Old 1st July 2013
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default

How extremely embarrassing. The problem was i was returning from the parent after the child had been forked to do the execle of /usr/bin/login so that i wasn't wait()ing for the child or calling a function to handle the reads/writes to/from the socket/pty(ptmx).
Sorry(again) for posting such a trivial problem!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick