From: "Donny Cooper" <dcooper@hstc.necsyl.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] getlogin problem
Date: Fri, 01 Jun 2001 19:34:01 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005684@msgid-missing> (raw)
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
-----------------------------------
reply other threads:[~2001-06-01 19:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590693005684@msgid-missing \
--to=dcooper@hstc.necsyl.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox