Linux-Development-Sys Digest #78, Volume #8 Mon, 14 Aug 00 03:13:10 EDT
Contents:
Re: What is the difference between soft link and hard link? (Nix)
Re: Asus A7V + Duron700 (Michael Meding)
Re: all threads in a process share the same pid? ([EMAIL PROTECTED])
Re: What is the difference between soft link and hard link? (Kevin Lacquement)
Re: all threads in a process share the same pid? (Kaz Kylheku)
Re: all threads in a process share the same pid? ([EMAIL PROTECTED])
Re: all threads in a process share the same pid? (Linus Torvalds)
keyboard, mouse blocking ("Wolfgang Fritzsche")
Re: all threads in a process share the same pid? ([EMAIL PROTECTED])
Re: Problem with 'mount' in kernel 2.4.0-test5 (softrat`)
Newby trying to build an online auction selling machine on Linux. Help? (schuetzen
- RKBA!)
Re: Problem with 'mount' in kernel 2.4.0-test5 (Robert Lynch)
debugging/profiling multithreaded (pthread) applications on RedHat 6.x? ("Marty
Fouts")
kernel-2.4.0 doesn't work (Kenneth Chiu)
How to run a program automatically?? (Terry)
set_fs, PTR_ERR, sh_bang ([EMAIL PROTECTED])
Re: kernel-2.4.0 doesn't work (softrat`)
Re: How to run a program automatically?? (Josef Moellers)
----------------------------------------------------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: What is the difference between soft link and hard link?
Date: 13 Aug 2000 02:02:56 +0100
Kevin Lacquement <[EMAIL PROTECTED]> writes:
> Nix wrote:
> >
> > No, but .. in / points to / (it is its own parent).
> >
>
> Ahh...the Unix filesystem....where your sister's your cousin and your
> father's....yourself.
Heinlein, `All You Zombies'.
(The cry of many a developer who forgot to wait() for his processes...)
--
`I am of the belief that catnip arrived on the planet in the same spaceship
that delivered cats. It is the only thing they have from their home
planet. Tuna, chicken, sparrow-brains, etc., these are all things of our
world that they like, but catnip is crack from home.' --- Bill Cole
------------------------------
From: Michael Meding <[EMAIL PROTECTED]>
Subject: Re: Asus A7V + Duron700
Date: Sun, 13 Aug 2000 16:57:25 +0200
Reply-To: [EMAIL PROTECTED]
Hi there,
try to boot ther installed system with a bootdisk. I have used a recent
SUSE cd for that job. Once you have booted into the system you have to
compile the kernel yourself and disable the "disable serial / cpuid"
config option right at the beginning when you do a make menuconfig.
This is a specific redhat problem.
Regards
MichaelThe Black Goeroe schrieb:
>
> Hi,
>
> Any1 here have linux running using these two?
> I use kernel 2.2.14 as distributed by RedHat.
> I just tried to install a RH6.2 on it and all went ok,
> but only until I got to reboot to start from it self without the CD that is.
> It didn't want to and gave a general page fault at kernel load, right after
> the message that it was going to disable CPU_ID I believe.
>
> Is there some things I can to do for it to work?
> (Like newer kernel wich recognizes the duron ok, or some compilation
> config?)
>
> Thx
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: Re: all threads in a process share the same pid?
Date: Sun, 13 Aug 2000 17:00:23 GMT
In comp.os.linux.development.system [EMAIL PROTECTED] wrote:
| Linux doesn't support Posix threads. Each thread _should_ have the
| same pid, but instead they're actual processes with their own.
If the threading standard defines a thread id, why is it concerning
itself with the process id?
How do I kill a specific run-away thread without killing all the
other threads?
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: Kevin Lacquement <[EMAIL PROTECTED]>
Subject: Re: What is the difference between soft link and hard link?
Date: Sun, 13 Aug 2000 19:13:19 GMT
Nix wrote:
>
> Kevin Lacquement <[EMAIL PROTECTED]> writes:
>
> > Nix wrote:
> > >
> > > No, but .. in / points to / (it is its own parent).
> > >
> >
> > Ahh...the Unix filesystem....where your sister's your cousin and your
> > father's....yourself.
>
> Heinlein, `All You Zombies'.
You mean that was in a book...I didn't make it up??
Cheers,
Kevin
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: all threads in a process share the same pid?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 13 Aug 2000 19:14:59 GMT
On Sun, 13 Aug 2000 17:00:23 GMT, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>In comp.os.linux.development.system [EMAIL PROTECTED] wrote:
>
>| Linux doesn't support Posix threads. Each thread _should_ have the
>| same pid, but instead they're actual processes with their own.
>
>If the threading standard defines a thread id, why is it concerning
>itself with the process id?
Because a thread is not a process according to the POSIX model. A process
is a collection of resources, including threads. That collection is
identified by its process ID.
>How do I kill a specific run-away thread without killing all the
>other threads?
You can kill a thread using pthread_kill, from within the process. However,
once one thread goes sour, the whole process is spoiled.
In the POSIX model, you can send a signal, from the outside, only to the entire
process not to a specific thread. A thread will be chosen to handle the signal,
arbitrarily from among ones that have the signal unblocked.
--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: all threads in a process share the same pid?
Crossposted-To: comp.os.linux.development.apps
Date: Sun, 13 Aug 2000 20:26:53 GMT
In comp.os.linux.development.apps [EMAIL PROTECTED] wrote:
> | Linux doesn't support Posix threads. Each thread _should_ have the
> | same pid, but instead they're actual processes with their own.
> If the threading standard defines a thread id, why is it concerning
> itself with the process id?
The standard states that all threads should share the same pid, and
different thread ids.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Linus Torvalds)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: all threads in a process share the same pid?
Date: 13 Aug 2000 15:26:42 -0700
In article <hwDl5.25287$[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
>
>The standard states that all threads should share the same pid, and
>different thread ids.
Easily fixed:
pid_t __cached_pid = 0;
pid_t getpid(void)
{
pid_t pid = __cached_pid;
if (!pid) {
pid = __getpid(); /* The real system call */
__cached_pid = pid;
}
return pid;
}
pid_t gettid(void)
{
return __getpid(); /* The real system call */
}
.. and pthread_create() needs to do a "getpid()" call to make
sure that the pid cache is primed. "fork()" needs to clear
the cached pid etc ..
If the pthreads library doesn't do this already, then it should.
Linus
------------------------------
From: "Wolfgang Fritzsche" <[EMAIL PROTECTED]>
Subject: keyboard, mouse blocking
Date: Mon, 14 Aug 2000 00:29:13 +0200
Hi,
how to activate/deactivate mouse/keyboard to control interactive user
inputs?
chmod 0000 /dev/mouse
doesn't work
would like to change while the system is in operation
thanks for answerig
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: all threads in a process share the same pid?
Crossposted-To: comp.os.linux.development.apps
Date: Sun, 13 Aug 2000 23:03:08 GMT
In comp.os.linux.development.apps Linus Torvalds <[EMAIL PROTECTED]>
wrote:
> .. and pthread_create() needs to do a "getpid()" call to make
> sure that the pid cache is primed. "fork()" needs to clear
> the cached pid etc ..
> If the pthreads library doesn't do this already, then it should.
It's not clear to me that this fixes the problem at all, rather it
just puts the proverbial band-aid on it. If you create two threads, t1
and t2, then do a fork()/exec() in t1 and a waitpid() int t2, you
cannot collect the child status.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: softrat` <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,alt.os.linux
Subject: Re: Problem with 'mount' in kernel 2.4.0-test5
Date: Sun, 13 Aug 2000 17:50:06 -0700
Robert Lynch wrote:
>
> softrat` wrote:
> >
> > I downloaded the source for mount-2.20f-1 and installed the package (so
> > I thought). Now I can't find the source code. An rpm query doesn't
> > report the source package loaded either. But the package load went on
> > without complaint.
>
> Do you mean an src.rpm?
Yes.
> Installing this
As I said, I think that I did this.
> places the sources in /usr/src/redhat/SOURCES, and the spec file in
> /usr/src/redhat/SPECS.
>
There is no 'mount' source code there as far as I can tell.
'/usr/src/redhat/SOURCES' has a bunch of obsolete code in it for
kernel 2.2.14-something. That's at least two kernel versions back.
> You would then build the binaries with "rpm -bb --clean
> mount.spec"; when done these would be placed in
> /usr/src/redhat/RPMS/i386 (typically).
>
>From which directory(s) do I perform all this magic?
> HTH. Bob L.
Still hanging in there, flailing away!
the softrat
mailto:[EMAIL PROTECTED]
------------------------------
From: schuetzen - RKBA! <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Newby trying to build an online auction selling machine on Linux. Help?
Date: Sun, 13 Aug 2000 19:58:27 -0500
I have on hand, ready to build, most of the stuff for a PC to be run on Linux
and Windows (only because there is no ported software yet). The PC will be
primarily for the purpose of handling sales on online auctions. Lots of db,
graphics, and so on. Major website work, Photoshop, etc.
Again - ALL of the following stuff is bought and on hand!
Questions follow the list.
hardware--
ASUS A7V motherboard (7 USB, 5 PCI)
AMD Thunderbird 750mhz CPU
Antec PP303X power supply 300watt
Addtronics 7896A full-tower w/12cm fans and 17cm blow hole
Iomega ZipCd 4x4x24x CD-RW EIDE
Castlewood Orb 2.2gb remov storage EIDE Internal
PIONEER 16X Internal ATAPI DVD-ROM Drive
1.44mb FDD
2 - Maxtor DiamondMax40 Plus 30.7gb DMA100, 7200rpm
Promise FasTrak100 ATA/100 Raid card
Kingston KNE110TX Ethernet card (SW Bell's card) for DSL
Diamond Monster Sound MX300 Audio Card
I have two video cards - which is better??
Either the 3dfx Voodoo3 3500TV AGP 16MB Video Card or,
the Diamond Stealth III S540 32MB 4X AGP S3 Savage4 Video Card
2 - 128kb Mustek PC133 SDRAM w/Siemens (AMD/ASUS approved)
Cool Card fan system
2 - Vantec HDD cooling fan/heat sinks (require 5.5" external bays)
software --
Linux Mandrake OS 7.1 DLX
SuSe Linux OS 7.0 Professional Ed.
Linux for Windows 7.1
books w/software --
Star Office for Linux for Dummies
KDE for Linux for Dummies
Linux for Windows
Web Page Construction Deluxe Linux
peripherals --
Epson Stylus Color 900 Printer
Dell 19-Inch UltraScan P991 Color Display
Touchpad/keyboard
Now, some questions and requests for advice --
I have been following your various comments in comp.os.linux.hardware and other
newsgroups - you all strike me as something of gurus on this subject. (we will
let the definition of a guru go for the time being<G>)
I am new to Linux and am presently running a 33/100mhz P1 on win95 ver2
I want to build a system that will primarily run on Linux (which distro?) and on
Doze (ME?) which will run Quicken, my Auction Software and my email - Agent by
Forte.
1. Will this stuff work together under the new SuSe?
2. Which of the TWO video cards should I use?
3. Which Windows s/w should I use? 2K, ME, 98?
4. The RAID problem - I want to mirror one HDD to back up the other.
5. Which dial up modem? I am using a USR v.everything now - while I plan to
run on DSL, I would like to have back up connections. If I were going cable -
this would not be a maybe but a necessity. Warner Cable sucks in Houston!
6. Do I need a larger power supply?
Any suggestions before I box all this up and give it to the builders?
thanks
chas
--
RKBA!
Charles L Hamilton Houston, TX email: [EMAIL PROTECTED]
X-No-Archive: Yes
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,alt.os.linux
Subject: Re: Problem with 'mount' in kernel 2.4.0-test5
Date: Sun, 13 Aug 2000 18:23:18 -0700
Reply-To: [EMAIL PROTECTED]
softrat` wrote:
>
> Robert Lynch wrote:
> >
> > softrat` wrote:
> > >
> > > I downloaded the source for mount-2.20f-1 and installed the package (so
> > > I thought). Now I can't find the source code. An rpm query doesn't
> > > report the source package loaded either. But the package load went on
> > > without complaint.
> >
> > Do you mean an src.rpm?
>
> Yes.
>
> > Installing this
>
> As I said, I think that I did this.
>
> > places the sources in /usr/src/redhat/SOURCES, and the spec file in
> > /usr/src/redhat/SPECS.
> >
> There is no 'mount' source code there as far as I can tell.
> '/usr/src/redhat/SOURCES' has a bunch of obsolete code in it for
> kernel 2.2.14-something. That's at least two kernel versions back.
>
> > You would then build the binaries with "rpm -bb --clean
> > mount.spec"; when done these would be placed in
> > /usr/src/redhat/RPMS/i386 (typically).
> >
> From which directory(s) do I perform all this magic?
>
> > HTH. Bob L.
>
> Still hanging in there, flailing away!
>
> the softrat
> mailto:[EMAIL PROTECTED]
# rpm -ivh mount-2.10m-3.src.rpm
mount ##################################################
# cd /usr/src/redhat/SOURCES
# pwd
/usr/src/redhat/SOURCES
# ls
util-linux-2.10m-alphahack.patch util-linux-2.10m.tar.bz2
# cd ../SPECS
# pwd
/usr/src/redhat/SPECS
#ls
mount.spec
# rpm -bb --clean mount.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.42900
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf util-linux-2.10m
+ /usr/bin/bzip2 -dc
/usr/src/redhat/SOURCES/util-linux-2.10m.tar.bz2
...[snip]
Requires: ld-linux.so.2 libc.so.6 libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
Wrote: /usr/src/redhat/RPMS/i386/mount-2.10m-3.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/losetup-2.10m-3.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.37152
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd util-linux-2.10m
+ rm -rf /var/tmp/mount-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.37152
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf util-linux-2.10m
+ exit 0
# cd
../RPMS/i386
# pwd
/usr/src/redhat/RPMS/i386
# ls
losetup-2.10m-3.i386.rpm mount-2.10m-3.i386.rpm
======
HTH. Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: "Marty Fouts" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: debugging/profiling multithreaded (pthread) applications on RedHat 6.x?
Date: Sun, 13 Aug 2000 20:17:41 -0700
We're trying to develop a couple of multithreaded applications running on
RedHat 6.x, in C++. We're using GCC 2.95.2, binutils 2.9.5, and gdb 4.18 and
5.0
We seem to have a lot of tool related problems, such as the version of gdb
4.18 we build with gcc 2.95.2 core dumping in ways that the 4.18 that's
included in the RH distribution don't.
Any advice on getting our toolset right for pthread development on RH 6.x
would be appreciated.
Also, what about tools for profiling multithreaded aps? We've found Tau and
are trying to use it. Is there anything else?
Thanks,
marty
------------------------------
From: Kenneth Chiu <[EMAIL PROTECTED]>
Subject: kernel-2.4.0 doesn't work
Date: 11 Aug 2000 10:35:28 GMT
I use the following command to compile linux-2.4.0-test5
but failed.
make menuconfig;
make dep;
make clean;
make bzlilo;
make modules;
make modules_install;
After configuring lilo, I reboot my machine. When the machine boot
up, I got no reponse and the machine halted.
I have used the same way to compile linux-2.2.16 and it seems no
problem. Could anyone tell me what I'm going wrong?
( I'm using redhat6.1 )
------------------------------
From: Terry <[EMAIL PROTECTED]>
Subject: How to run a program automatically??
Date: Wed, 09 Aug 2000 15:39:39 +0800
I have finished a program that can provide a chatroom service.
How can I do so that everytime when the server boots or the program
suddenly stops runnung, it will automatically run this program??
Thanks,
Terry
------------------------------
From: [EMAIL PROTECTED]
Subject: set_fs, PTR_ERR, sh_bang
Date: Mon, 14 Aug 2000 16:20:33 +1000
Hi,
1. I am wondering in what file the set_fs() routine can be found. I
can't find it... Is there a searchable source code navigator on the
web that I can use instead of questions like this. nb. I am at work
on a non-linuxbox so can't jsut search source tree.
2. What does the sh_bang field in the linux_binprm struct do? Is
this documented anywhere?
3. The macro PTR_ERR and IS_ERR used in binfmt_elf.c. What do they
do?
sorry to bother, new to kernel... Thanks in advance.
dan.
------------------------------
From: softrat` <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.0 doesn't work
Date: Sun, 13 Aug 2000 23:21:27 -0700
Kenneth Chiu wrote:
>
> I use the following command to compile linux-2.4.0-test5
> but failed.
>
> make menuconfig;
> make dep;
> make clean;
> make bzlilo;
> make modules;
> make modules_install;
>
> After configuring lilo, I reboot my machine. When the machine boot
> up, I got no reponse and the machine halted.
> I have used the same way to compile linux-2.2.16 and it seems no
> problem. Could anyone tell me what I'm going wrong?
> ( I'm using redhat6.1 )
You probably need to update your package modutils. Documentation/Changes
for kernel 2.4.0-test5 recommends version 2.3.10 or later. I am using
version 2.3.14-1.
the softrat
[EMAIL PROTECTED]
--
Force has no place where there is need of skill.
-- Herodotus
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: How to run a program automatically??
Date: Mon, 14 Aug 2000 08:41:48 +0200
Terry wrote:
> =
> I have finished a program that can provide a chatroom service.
> How can I do so that everytime when the server boots or the program
> suddenly stops runnung, it will automatically run this program??
You can put it into the inittab. See "man inittab", especially the
"respawn" thingy.
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************