wireshark/wsutil
Tomasz Moń 4240381026 wsutil: Remove flawed ws_pipe_close() function
The semantics behind ws_pipe_close() were broken since its introduction.
Forcing process termination on Windows, while simply setting variable on
other systems results in more OS specific code sprinkled all over the
place instead of less. Moreover ws_pipe_close() never handled standard
file handles. It is really hard to come up with sensible ws_pipe_close()
replacement, as process exit is actually asynchronous action. It is
recommended to register child watch using g_child_watch_add() instead.

Do not call ws_pipe_close() when deleting capture interface. Things will
break if extcap is still running when interface opts are being freed and
terminating process won't help.

Rework maxmind shutdown to rely on GIOChannel state. For unknown reason
TerminateProcess() is still needed on Windows. The actual root cause
should be identified and fixed instead of giving up hope that it will
ever work correctly on Windows. In other words, TerminateProcess()
should not be used as a pattern, but rather as a last resort.
2022-08-14 16:05:22 +00:00
..
wmem dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
.editorconfig About: Reformat and expand some text. 2022-08-03 09:10:07 +00:00
802_11-utils.c wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
802_11-utils.h wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
CMakeLists.txt About: Reformat and expand some text. 2022-08-03 09:10:07 +00:00
adler32.c
adler32.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
base32.c
base32.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
bits_count_ones.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
bits_ctz.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
bitswap.c
bitswap.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
buffer.c wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
buffer.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
cfutils.c
cfutils.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
codecs.c wsutil: Fix incorrect header include 2021-06-25 03:14:22 +00:00
codecs.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
color.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
cpu_info.c Get CPU type strings from the OS if possible. 2022-07-10 13:17:52 -07:00
cpu_info.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crash_info.c Add missing header, fix macOS build 2021-12-19 19:09:05 +00:00
crash_info.h Add missing header, fix macOS build 2021-12-19 19:09:05 +00:00
crc5.c
crc5.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc6.c
crc6.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc7.c
crc7.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc8.c
crc8.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc10.c
crc10.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc11.c Fix -Wdocumentation warning 2021-04-14 14:01:49 +00:00
crc11.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc16-plain.c
crc16-plain.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc16.c
crc16.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
crc32.c
crc32.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
curve25519.c libgcrypt: Require version 1.8.0 2022-04-20 21:30:21 -04:00
curve25519.h libgcrypt: Require version 1.8.0 2022-04-20 21:30:21 -04:00
dot11decrypt_wep.c
eax.c
eax.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
epochs.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
exported_pdu_tlvs.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
feature_list.c Windows: Fix build 2022-02-24 20:29:04 +00:00
feature_list.h wsutil: New API to gather compile/runtime info 2022-02-24 13:27:08 +00:00
file_util.c extcap: Close pipe on windows properly 2022-05-16 14:48:37 +02:00
file_util.h extcap: Close pipe on windows properly 2022-05-16 14:48:37 +02:00
filesystem.c Add a default configuration profile for Logray. 2022-07-06 10:53:21 -05:00
filesystem.h Add a default configuration profile for Logray. 2022-07-06 10:53:21 -05:00
g711.c
g711.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
glib-compat.h glib: Bump required version to 2.50 2022-04-22 12:55:37 +00:00
inet_addr.c wsutil/inet_addr: Add a cast to squelch a narrowing warning 2021-12-27 23:11:51 +00:00
inet_addr.h wsutil/inet_addr: Refactor to use C99/POSIX types 2021-12-27 19:02:50 +00:00
inet_ipv4.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
inet_ipv6.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
interface.c
interface.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
jsmn.c
jsmn.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
json_dumper.c json_dumper: Adding support to dump JSON to GString 2022-03-03 14:47:32 +00:00
json_dumper.h json_dumper: Adding support to dump JSON to GString 2022-03-03 14:47:32 +00:00
mpeg-audio.c mpeg: handle the presence of an image in the ID3v2 header. 2022-03-10 07:38:14 +00:00
mpeg-audio.h mpeg: handle the presence of an image in the ID3v2 header. 2022-03-10 07:38:14 +00:00
netlink.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
nstime.c nstime: "localtime()" is an API, "local time" is local time. 2022-01-03 23:08:07 +00:00
nstime.h epan: Add back ABSOLUTE_TIME_NTP_UTC representation 2021-12-29 00:30:17 +00:00
os_version_info.c OS Version Info: Improve Windows detection 2021-11-28 22:16:19 +00:00
os_version_info.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
pint.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
please_report_bug.c
please_report_bug.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
plugins.c Add new global header wireshark.h with guideline 2021-10-22 06:41:44 +00:00
plugins.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
pow2.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
privileges.c Replace g_log() calls with ws_log() 2021-06-16 12:50:27 +00:00
privileges.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
processes.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
regex.c Convert capture file regex search to PCRE2. 2022-07-27 11:21:03 +00:00
regex.h Convert capture file regex search to PCRE2. 2022-07-27 11:21:03 +00:00
report_message.c
report_message.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
rsa.c wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
rsa.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
safe-math.h safe-math: Remove unnecessary clutter 2022-03-31 15:49:43 +01:00
sign_ext.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
sober128.c
sober128.h Add files with WS_DLL_PUBLIC to Doxygen part2 2021-11-30 06:47:35 +00:00
socket.c wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
socket.h wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
str_util.c dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
str_util.h dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
strnatcmp.c
strnatcmp.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
strptime.c Use a wrapper function to call strptime() 2021-12-27 14:07:32 +00:00
strptime.h Use a wrapper function to call strptime() 2021-12-27 14:07:32 +00:00
strtoi.c Replace g_assert() with ws_assert() in places 2021-06-06 20:05:26 +00:00
strtoi.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
tempfile.c Specify directory for temporary captures 2022-02-09 14:32:28 +00:00
tempfile.h Specify directory for temporary captures 2022-02-09 14:32:28 +00:00
test_wsutil.c wsutil/str_util: Escape string API extensions 2022-06-21 15:10:07 +00:00
time_util.c Use a wrapper function to call strptime() 2021-12-27 14:07:32 +00:00
time_util.h Use a wrapper function to call strptime() 2021-12-27 14:07:32 +00:00
to_str.c Corrects repeated words throughout the code. 2021-12-22 11:01:11 +00:00
to_str.h Add files with WS_DLL_PUBLIC to Doxygen part2 2021-11-30 06:47:35 +00:00
type_util.c
type_util.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
unicode-utils.c wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
unicode-utils.h wsutil: Use snprintf() and ws_strdup_printf() 2021-12-19 12:23:14 +00:00
utf8_entities.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
win32-utils.c Remove some circular dependencies on wireshark.h 2022-01-05 13:31:52 +00:00
win32-utils.h Remove some circular dependencies on wireshark.h 2022-01-05 13:31:52 +00:00
ws_assert.h ws_assert: refactor assertions 2022-01-05 13:31:53 +00:00
ws_cpuid.h cpuid: clean up, update. and expand some comments. 2022-06-01 00:42:47 -07:00
ws_getopt.c ws_getopt: Rename struct and macros 2021-09-30 13:59:28 +00:00
ws_getopt.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
ws_mempbrk.c
ws_mempbrk.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
ws_mempbrk_int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
ws_mempbrk_sse42.c
ws_pipe.c wsutil: Remove flawed ws_pipe_close() function 2022-08-14 16:05:22 +00:00
ws_pipe.h wsutil: Remove flawed ws_pipe_close() function 2022-08-14 16:05:22 +00:00
ws_return.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
ws_roundup.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wsgcrypt.c libgcrypt: Require version 1.8.0 2022-04-20 21:30:21 -04:00
wsgcrypt.h libgcrypt: Remove HAVE_GCRYPT_AEAD , _CHACHA20 2022-04-21 07:11:32 -04:00
wsjson.c NGAP: fix dissection of multiple NGAP messages in the same HTTP2 packet 2021-06-21 13:33:55 +00:00
wsjson.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wslog.c glib: Bump required version to 2.50 2022-04-22 12:55:37 +00:00
wslog.h wslog: Refactor ws_log_set_fatal() for consistency 2022-03-26 00:15:50 +00:00
xtea.c
xtea.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00