08-02-2005
Please read our
rules. And note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.
I have closed the duplicate thread,
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies
2. UNIX for Advanced & Expert Users
root@INTSETICADB # su - oracle
Killed
root@INTSETICADB # su - selectica
Killed
root@INTSETICADB # man prstat
Reformatting page. Please Wait...Segmentation Fault - core dumped
sys(cd /usr/man; /usr/lib/sgml/sgml2roff /usr/man/sman1m/prstat.1m > /tmp/sman_iUaW5x) fail!
aborted (sorry) (3 Replies)
Discussion started by: abhijeetkul
3 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to set up x2x between my desktop and laptop, and as a precondition to that, I'm just trying to get each to be able to display programs on the other (e.g. "desktop$ xterm -display laptop:0").
OS is Ubuntu 5.10 and X version is X.org 6.8.2
I've set up X to run without -nolisten, and... (1 Reply)
Discussion started by: vertigo23
1 Replies
4. Programming
hi
i have written a program to display files in a directory
but it doesnt compile on the sun/solaris system....
im using gcc(inbuilt compiler)
im generally used to working on a windows environment so maybe im overlookiing something
ive added comments to help readability of the program
i also... (2 Replies)
Discussion started by: anything2
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all, dummy here.... I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies
6. Programming
Problem background:
gcc v 4.1
2 .cpp files, 2 .h files
Files:
main.cpp
a.cpp
a.h
b.h
Organization:
main.cpp includes a.h (because it calls a.cpp code)
a.cpp includes a.h
a.h includes b.h (because a class in a.h uses a b.h class)
There is no inheritance between a.h or b.h or any of... (1 Reply)
Discussion started by: johnqsmith
1 Replies
7. Hardware
How do I configure my wireless adapter to access the internet? I am running PCLinuxOS 2010. (0 Replies)
Discussion started by: ryan352333
0 Replies
8. Shell Programming and Scripting
ln: Filename1 and Filename2 are identical.
Seems to be an error.. Unable to proceed further
Can you ppl help me? (5 Replies)
Discussion started by: DevM
5 Replies
9. AIX
Hi Can any suggest me how to work on this particular issue i am facing.
Below is the error message received on vio servers.
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
4B436A3D 0326102912 T H fscsi1 LINK ERROR
4B436A3D 0325212712 T H fscsi1 LINK ERROR
4B436A3D... (2 Replies)
Discussion started by: ganiiee
2 Replies
10. UNIX for Advanced & Expert Users
Any help appreciated just logging in to this server which is a front end for Rocks Cluster 6.1.1. Getting the below errors:
ldconfig
ldconfig: /usr/lib/libX11.so.6 is not a symbolic link
ldconfig: /usr/lib/libjpeg.so.62 is not a symbolic link
ldconfig: /usr/lib/libpng12.so.0 is not a symbolic... (3 Replies)
Discussion started by: RobbieTheK
3 Replies
LEARN ABOUT DEBIAN
pthread_detach
PTHREAD_DETACH(3) Linux Programmer's Manual PTHREAD_DETACH(3)
NAME
pthread_detach - detach a thread
SYNOPSIS
#include <pthread.h>
int pthread_detach(pthread_t thread);
Compile and link with -pthread.
DESCRIPTION
The pthread_detach() function marks the thread identified by thread as detached. When a detached thread terminates, its resources are
automatically released back to the system without the need for another thread to join with the terminated thread.
Attempting to detach an already detached thread results in unspecified behavior.
RETURN VALUE
On success, pthread_detach() returns 0; on error, it returns an error number.
ERRORS
EINVAL thread is not a joinable thread.
ESRCH No thread with the ID thread could be found.
CONFORMING TO
POSIX.1-2001.
NOTES
Once a thread has been detached, it can't be joined with pthread_join(3) or be made joinable again.
A new thread can be created in a detached state using pthread_attr_setdetachstate(3) to set the detached attribute of the attr argument of
pthread_create(3).
The detached attribute merely determines the behavior of the system when the thread terminates; it does not prevent the thread from being
terminated if the process terminates using exit(3) (or equivalently, if the main thread returns).
Either pthread_join(3) or pthread_detach() should be called for each thread that an application creates, so that system resources for the
thread can be released. (But note that the resources of all threads are freed when the process terminates.)
EXAMPLE
The following statement detaches the calling thread:
pthread_detach(pthread_self());
SEE ALSO
pthread_attr_setdetachstate(3), pthread_cancel(3), pthread_create(3), pthread_exit(3), pthread_join(3), pthreads(7)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-11-27 PTHREAD_DETACH(3)