1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-04 21:18:33 +00:00
Pavel Labath 5ded90e22a Fix wlan stats segfault (sf.net #3581218)
Sometimes wlan related TEXT causes segment fault, and backtrace shows it's strtok in
iw_get_stats.

I read the code of wireless_tools, which says 'strtok not thread safe, not used in WE-12 and
later' for iw_get_stats. But it need to first check if has_range and then we_version_compiled.

In conky/src/linux.cc, iw_get_stats is called before iw_get_range_info, hence has_range is always
0 in iw_get_stats and strtok is used. I simply move iw_get_range_info before iw_get_stats and no
segfault up to now.

patch by ruikai
2012-11-01 15:04:08 +01:00
2012-06-28 19:05:28 +02:00
2012-05-03 16:34:44 -07:00
2010-04-17 15:19:44 +02:00
2010-01-01 15:03:40 -08:00
2012-05-03 16:34:44 -07:00
2009-03-29 23:18:17 -06:00
2005-07-20 00:30:40 +00:00
2010-01-01 15:46:17 -08:00
2007-08-10 19:53:44 +00:00
2008-02-20 20:30:45 +00:00
2012-07-13 20:13:36 +02:00
2008-12-09 16:35:49 -07:00

Hello, there.

Using CMake to build Conky is pretty easy, and here is how I do it:

1. From the top level source dir, create a build working dir, and cd into it
  $ mkdir build
  $ cd build
2. Run the cmake configuration process
  $ cmake ../ # pass the path to the sources to cmake
  OR
  $ ccmake ../ # you can also use the fance curses interface, or try cmake-gui
3. Compile as usual, and enjoy the out-of-source goodness
  $ make
  # make install # if you want

There are a number of build options for Conky, and the best way to discover
them is to use the ccmake (or cmake-gui) CMake tool for browsing them.

Certain Conky build time features (such as doc generation) require third-party
applications, which you should be notified of via CMake.  In the case of doc
generation, you'll need the docbook2X package (available on most
distributions).
Languages
C++ 84.8%
C 4.8%
CMake 4.1%
TypeScript 2%
Objective-C++ 1.8%
Other 2.4%