public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] getlogin problem
@ 2001-06-01 19:34 Donny Cooper
  0 siblings, 0 replies; only message in thread
From: Donny Cooper @ 2001-06-01 19:34 UTC (permalink / raw)
  To: linux-ia64

Hello,

Below is a small test that shows a getlogin problem.

Please review the following session. The getlogin does not
return username if the code is executed in a script with background
command, but returns correctly when run in foreground.

Note: below test uses ecc (Intel Compiler), gcc compiler yields
same results. 

This works correctly in 000828 with 2.4.0-test10 kernel.
 
Any ideas?

Thanks.

Donny
NEC Systems, Inc.

--- Begin Test Case -----------------
Failed Environments:
TurboLinux Beta2-R1 w/ 2.4.0-010109-61 kernel on Lion system
TurboLinux Beta2-R1 w/ 2.4.3-AzusA kernel on AzusA system 
TurboLinux Beta3    w/ 2.4.3-010405 kernel on Lion system

[aamin@lion]$ cat getlogin.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
main()
{
char *s;
s=malloc(32);
s=getlogin();
printf("arvind login %s \n",s);
}

[aamin@lion]$ ecc -o getlogin getlogin.c

[aamin@lion]$ cat test.csh
#!/bin/csh
./getlogin &

[aamin@lion]$ ./getlogin
arvind login aamin

[aamin@lion]$ test.csh
[1] 15977
[aamin@lion]$ arvind login (null)
 
--- End Test Case -------------------

-----------------------------------
Donny Cooper
NEC Systems, Inc.
Advanced Technical Computing Center
dcooper@atcc.necsyl.com
http://www.necservers.com
----------------------------------- 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-01 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-01 19:34 [Linux-ia64] getlogin problem Donny Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox