08-28-2015
Hi,
Thanks for the responses.
There isn't a call to the function "cleanup_disks" anywhere in the code (including none being in the "..." parts).
THAT is what is puzzling me. If there is no call to the "cleanup_disks" function, what is causing it to be executed? That was why I had the Subject that I had... I was wondering if there might be something "special" about being the last function or something like that.
Otherwise, if the "cleanup_disks" function isn't explicitly called, then why is it being executed?
Thanks,
Jim
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hi,
This seems to be a recurrent problem on mailing lists and bug reports, but I've been unable to find a solution. Let's imagine we have this bash script:
#!/bin/bash
set -e
fun() {
echo "fun_start"
test 1 = 2
echo "fun_end"
}
echo "main_start"
fun
echo "main_end"This... (1 Reply)
Discussion started by: tokland
1 Replies
3. Shell Programming and Scripting
Imagine a user-defined function.
func() { /usr/pkg/bin/program long-string-of-switches-and-configs "$@" ;}
I execute it once. Then background it.
I execute another instance. Then bg it.
func unique-user-input
^Z
func unique-user-input
^Z
First I view with ps
ps wwaux
... (0 Replies)
Discussion started by: uiop44
0 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Programming
Hi .. I'm a student that I helped by you when I was learning c for unix..
I want to ask you about different thing this time and I know you can help me
be cause I like your style helping people..
I want to ask about .net c# ...
I did a simple program that make me control my windows system... (3 Replies)
Discussion started by: fwrlfo
3 Replies
6. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
8. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT HPUX
thr_exit
thr_exit(3C) Standard C Library Functions thr_exit(3C)
NAME
thr_exit - terminate the calling thread
SYNOPSIS
cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
void thr_exit(void *status);
DESCRIPTION
The thr_exit() function terminates the calling thread, in a similar way that exit(3C) terminates the calling process. If the calling thread
is not detached, then the thread's ID and the exit status specified by status are retained. The value status is then made available to any
successful join with the terminating thread (see thr_join(3C)); otherwise, status is disregarded allowing the thread's ID to be reclaimed
immediately.
Any cancellation cleanup handlers that have been pushed and not yet popped are popped in the reverse order that they were pushed and then
executed. After all cancellation cleanup handlers have been executed, if the thread has any thread-specific data, appropriate destructor
functions will be called in an unspecified order. Thread termination does not release any application visible process resources,including,
but not limited to, mutexes and file descriptors, nor does it perform any process level cleanup actions, including, but not limited to,
calling any atexit() routines that might exist.
If any thread, including the main() thread, calls thr_exit(), only that thread will exit.
If main() returns or exits (either implicitly or explicitly), or any thread explicitly calls exit(), the entire process will exit.
The behavior of thr_exit() is undefined if called from a cancellation cleanup handler or destructor function that was invoked as a result
of either an implicit or explicit call to thr_exit().
After a thread has terminated, the result of access to local (auto) variables of the thread is undefined. Thus, references to local vari-
ables of the exiting thread should not be used for the thr_exit() status parameter value.
If any thread (except the main() thread) implicitly or explicitly returns, the result is the same as if the thread called thr_exit() and it
will return the value of status as the exit code.
The process will terminate with an exit status of 0 after the last non-daemon thread has terminated (including the main() thread). This
behavior is the same as if the application had called exit() with a 0 argument at thread termination time.
RETURN VALUES
The thr_exit() function cannot return to its caller.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
exit(3C), thr_create(3C), thr_join(3C), thr_keycreate(3C), attributes(5), standards(5)
NOTES
Although only POSIX implements cancellation, cancellation can be used with Solaris threads, due to their interoperability.
The status argument should not reference any variables local to the calling thread.
SunOS 5.10 27 Mar 2000 thr_exit(3C)