All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix re-enabling of cursor with slang also after pressing Ctrl-C
@ 2014-08-04 11:28 Martin Steigerwald
  2014-08-04 11:53 ` Martin Steigerwald
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Steigerwald @ 2014-08-04 11:28 UTC (permalink / raw)
  To: util-linux

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

According to curs_set(0) in ui_init() I think curs_set(1) belongs into
ui_end with in die_on_signal() also gets called on SIGINT or SIGTERM.

This should complete the fix made by Andreas in commit 4f4daf8f.

I could not yet test the fix as building current git fails with:

/usr/bin/ld: sys-utils/swapoff-swapon-common.o: undefined reference to symbol 'blkid_probe_lookup_value@@BLKID_2.15'
//home/martin/Linux/util-linux/util-linux/.libs/libblkid.so.1: error adding symbols: DSO missing from command line

Will test as soon as I found out how to fix this build issue. Benno
reported it already on mailing list.

Addresses-Debian-Bug: #757000
BCC´d there for reference.
---
 disk-utils/cfdisk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index dfdaaf0..536132a 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -525,6 +525,7 @@ static int ui_end(void)
 #else
        mvcur(0, COLS - 1, LINES-1, 0);
 #endif
+       curs_set(1);
        nl();
        endwin();
        printf("\n");
@@ -1966,7 +1967,6 @@ static int ui_run(struct cfdisk *cf)
 
        menu_pop(cf);
 
-       curs_set(1);
        DBG(FRONTEND, ul_debug("ui: end"));
 
        return 0;
-- 
2.0.1


Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] Fix re-enabling of cursor with slang also after pressing Ctrl-C
@ 2014-08-04 11:31 Martin Steigerwald
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Steigerwald @ 2014-08-04 11:31 UTC (permalink / raw)
  To: util-linux

Hmmm, in case GPG signing messes up processing by git, here unsigned

According to curs_set(0) in ui_init() I think curs_set(1) belongs into
ui_end with in die_on_signal() also gets called on SIGINT or SIGTERM.

This should complete the fix made by Andreas in commit 4f4daf8f.

I could not yet test the fix as building current git fails with:

/usr/bin/ld: sys-utils/swapoff-swapon-common.o: undefined reference to symbol 
'blkid_probe_lookup_value@@BLKID_2.15'
//home/martin/Linux/util-linux/util-linux/.libs/libblkid.so.1: error adding 
symbols: DSO missing from command line

Will test as soon as I found out how to fix this build issue. Benno
reported it already on mailing list.

Addresses-Debian-Bug: #757000
BCC´d there for reference.
---
 disk-utils/cfdisk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index dfdaaf0..536132a 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -525,6 +525,7 @@ static int ui_end(void)
 #else
        mvcur(0, COLS - 1, LINES-1, 0);
 #endif
+       curs_set(1);
        nl();
        endwin();
        printf("\n");
@@ -1966,7 +1967,6 @@ static int ui_run(struct cfdisk *cf)
 
        menu_pop(cf);
 
-       curs_set(1);
        DBG(FRONTEND, ul_debug("ui: end"));
 
        return 0;
-- 
2.0.1


Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-06 17:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 11:28 [PATCH] Fix re-enabling of cursor with slang also after pressing Ctrl-C Martin Steigerwald
2014-08-04 11:53 ` Martin Steigerwald
2014-08-04 12:01   ` Martin Steigerwald
2014-08-06 13:49     ` Karel Zak
2014-08-06 14:37       ` Martin Steigerwald
2014-08-06 17:15         ` Andreas Henriksson
2014-08-04 11:31 Martin Steigerwald

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.