summaryrefslogtreecommitdiff
path: root/hardinfo/pci_util.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-15 18:46:59 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-08-10 16:50:18 -0700
commit3c83737fa488281f20030b5b36d7e1d4ba4313c9 (patch)
tree058ab8e18ff6bacdcf4a2551bf8845b447bab88a /hardinfo/pci_util.c
parent0133e9fba615d8b5b1c67976a1da702977dd74a3 (diff)
Always pulse status bar while spawning processes synchronously
Diffstat (limited to 'hardinfo/pci_util.c')
-rw-r--r--hardinfo/pci_util.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c
index ec80662b..2aa2ece3 100644
--- a/hardinfo/pci_util.c
+++ b/hardinfo/pci_util.c
@@ -99,9 +99,7 @@ static gboolean pci_fill_details(pcid *s) {
gchar *pci_loc = pci_address_str(s->domain, s->bus, s->device, s->function);
gchar *lspci_cmd = g_strdup_printf("lspci -D -s %s -vvv", pci_loc);
- shell_status_pulse();
-
- spawned = g_spawn_command_line_sync(lspci_cmd,
+ spawned = hardinfo_spawn_command_line_sync(lspci_cmd,
&out, &err, NULL, NULL);
g_free(lspci_cmd);
g_free(pci_loc);
@@ -213,9 +211,7 @@ static gboolean pci_get_device_lspci(uint32_t dom, uint32_t bus, uint32_t dev, u
s->device = dev;
s->function = func;
- shell_status_pulse();
-
- spawned = g_spawn_command_line_sync(lspci_cmd,
+ spawned = hardinfo_spawn_command_line_sync(lspci_cmd,
&out, &err, NULL, NULL);
g_free(lspci_cmd);
if (spawned) {
@@ -274,7 +270,7 @@ static pcid *pci_get_device_list_lspci(uint32_t class_min, uint32_t class_max) {
if (class_max == 0) class_max = 0xffff;
- spawned = g_spawn_command_line_sync("lspci -D -mn",
+ spawned = hardinfo_spawn_command_line_sync("lspci -D -mn",
&out, &err, NULL, NULL);
if (spawned) {
p = out;