glibc/sunrpc
Matheus Castanho f34c4d0f10 sunrpc: Properly clean up if tst-udp-timeout fails
The macro TEST_VERIFY_EXIT is used several times on
sunrpc/tst-udp-timeout to exit the test if a condition evaluates to
false. The side effect is that the code to terminate the RPC server
process is not executed when the program calls exit, so that
sub-process stays alive.

This commit registers a clean up function with atexit to kill the
server process before exiting the main program.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2020-02-12 16:25:34 -03:00
..
rpc Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rpcsvc Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
auth_des.c Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
auth_none.c
auth_unix.c Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
authdes_prot.c
authuxprot.c
bindrsvprt.c
bug20790.x
clnt_gen.c
clnt_perr.c
clnt_raw.c
clnt_simp.c
clnt_tcp.c
clnt_udp.c
clnt_unix.c
create_xid.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
des_crypt.c
des_impl.c
des_soft.c
etc.rpc
get_myaddr.c
getrpcbyname_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcbyname.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcbynumber_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcbynumber.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcent_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrpcport.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
key_call.c
key_prot.c
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
netname.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
openchild.c
pm_getmaps.c
pm_getport.c
pmap_clnt.c
pmap_prot2.c
pmap_prot.c
pmap_rmt.c
proto.h
publickey.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rpc_clntout.c
rpc_cmsg.c
rpc_common.c
rpc_cout.c
rpc_dtable.c
rpc_gethostbyname.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rpc_hout.c
rpc_main.c
rpc_parse.c
rpc_parse.h
rpc_prot.c
rpc_sample.c
rpc_scan.c
rpc_scan.h
rpc_svcout.c
rpc_tblout.c
rpc_thread.c
rpc_util.c
rpc_util.h
rpcgen.c
rtime.c
svc_auth.c
svc_authux.c
svc_raw.c
svc_run.c
svc_simple.c
svc_tcp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
svc_udp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
svc_unix.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
svc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
svcauth_des.c Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
test-rpcent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
thrsvc.c
tst-getmyaddr.c
tst-svc_register.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-udp-error.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-udp-garbage.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-udp-nonblocking.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-udp-timeout.c sunrpc: Properly clean up if tst-udp-timeout fails 2020-02-12 16:25:34 -03:00
tst-xdrmem2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-xdrmem.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions
xcrypt.c
xdr_array.c
xdr_float.c
xdr_intXX_t.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xdr_mem.c
xdr_rec.c
xdr_ref.c
xdr_sizeof.c
xdr_stdio.c
xdr.c