summaryrefslogtreecommitdiff
path: root/source3/lib/background.c
AgeCommit message (Collapse)AuthorFilesLines
2022-12-14smbd: remove process shortname arg from reinit_after_fork()Ralph Boehme1-1/+1
All callers pass NULL anyway, so it isn't used anymore. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-01lib: Fix rundown of jobs sent with background_job_send()Volker Lendecke1-18/+18
When using this with a trigger message in smbd it will crash at rundown in messaging_deregister because the global messaging context can be TALLOC_FREE'ed before the background job is freed. Using messaging_filtered_send already takes care of this situation properly. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-09-24s3: Move call to prctl_set_comment to reinit_after_forkChristof Schmitt1-1/+1
This save a few lines of code. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2015-06-12s3:lib/background: make sure we destroy a pending read_packet_send() before ↵Stefan Metzmacher1-0/+8
closing the pipe fd BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2014-07-22lib: Fix a valgrind errorVolker Lendecke1-1/+12
See the comment inside Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-04-23smbd: Call the msg_ctx destructor for background jobsVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-04-19s3: Fix Coverity ID 2743: CHECKED_RETURNVolker Lendecke1-3/+6
2012-04-17s3: Add infrastructure for background jobsVolker Lendecke1-0/+233